﻿using UnityEngine;
using System.Collections;

public class AssetCell
{
    public string path;
    public string hashCode;
    public long size;
    public AssetCell()
    {

    }

    public AssetCell(string path,string hashCode,long size)
    {
        this.path = path;
        this.hashCode = hashCode;
        this.size = size;
    }

    public bool ReadData(string data)
    {
        string[] ds = data.Split(new char[] { '\t' });
        if(ds.Length != 3)
        {
            return false;
        }
        path = ds[0];
        hashCode = ds[1];
        size = long.Parse(ds[2]);
        return true;
    }
    public override string ToString()
    {
        return path + "\t" + hashCode+"\t" + size;
    }
}
